<div class="delete-box" id="delete-box">
    <div class="delete-box-1" id="delete-box-1" onclick="closePopup()"></div>
    <div class="delete-box-2">
        <div class="delete-box-header"></div>
        <p>是否确认删除数据？</p>
        <ul>
            <li id="sure_btn"></li>
            <li><a href="javascript:void(0)" onclick="closePopup()">取消</a></li>
        </ul>
    </div>
</div>

<script>
    function popupBox(nid,belong){
        document.getElementById('delete-box').style.display='block';
        if(belong){
            document.getElementById("sure_btn").innerHTML = "<a href='detail-delete.php?nid="+nid+"&sys_part="+belong+"'>确认</a>";
        }else{
            document.getElementById("sure_btn").innerHTML = "<a href='detail-delete.php?nid="+nid+"&sys_part=<? echo $system_part ?>'>确认</a>";
        }
    };
    function popupBoxTerm(nid){
        document.getElementById('delete-box').style.display='block';
        document.getElementById("sure_btn").innerHTML = "<a href='term-delete.php?nid="+nid+"&sys_part=<? echo $system_part ?>'>确认</a>";
    };
    function closePopup(){
        document.getElementById('delete-box').style.display='none';
    }
</script>